Saving User Preferences
The Operating System and some individual script systems use control panels to let users change text-related system settings, such as line direction, associated font, kashida preferences, and caret style. Script systems may store these settings in a script preferences file in the Extensions folder. This file contains resources of type'CNFG'
, whose resource ID numbers are equal to the script codes of the script systems they represent.As noted under "Initialization Sequence" on page A-28, when installing a script system WorldScript I looks for a script preferences file in the Preferences folder. For each script system it initializes, WorldScript I loads the
'CNFG'
resource for that script from the script preferences file and uses it to reconfigure the script.
See the discussion of the encoding/rendering resource in the appendix "International Resources" in this book for a description of the script configuration table.
- Note
- The
'CNFG'
resource in the script preferences file has exactly the same format as the script configuration table in the encoding/rendering resource. However, it may not have exactly the same elements. The types of configuration settings specified in the'itl5'
resource may be different from those settable by the user through a control panel.![]()